import request from '@/service'

// 获取banner表
export function getBannerList() {
  return request({
    url: '/banner/list'
  })
}

// 根据bannerid进行单张图片删除
// params = {bannerid:xxx}
export function delBannerById(params) {
  return request({
    url: '/banner/delete',
    params
  })
}

// 上传图片
export function addBanner(data) {
  return request({
    url: '/banner/add',
    method: 'post',
    data
  })
}
